import request from "./request";
export const getUserInfo = () => {
    return request(`/me-api/user-info`)
      .then((res) => {
        if (res.status === 1) {
          return res.data
        } else {
            throw Error(res['msg'])
        }
      })
}

export const getDictInfo = () => {
    return request(`/me-api/dict`)
      .then((res) => {
        if (res.status === 1) {
          return res.data
        } else {
            throw Error(res['msg'])
        }
      })
}

